﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Internal.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    物料入库
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptStyleCOntent" runat="server">
    <script type="text/javascript">
        $("#poCode").ready(function () {
            setTimeout(function () {
                $("#OperationScreen").show();
            }, 2000);
            setTimeout(function () {
                $("#materialList").show();
                $("#pConfirm").show();
            }, 3000);
            setTimeout(function () {
                $("#amount").attr("value", "2");
            }, 5000);
            setTimeout(function () {
                $("#amount").attr("value", "3");
            }, 7000);
            setTimeout(function () {
                $("#materialList2").show();
            }, 10000);
            setTimeout(function () {
                $("#amount2").attr("value", "2");
            }, 12000);
        });

        function modifyAmount(containerId, txtId, obj) {
            $("#" + containerId).hide();
            $("#" + txtId).show().attr("value", $("#" + containerId).html());
            document.getElementById(txtId).focus();
            $("#" + txtId).focusout(goBackHandler(containerId, txtId, obj));
        }

        function goBackHandler(containerId, txtId, obj) {
            return function () {
                $("#" + txtId).hide();
                $("#" + containerId).show();
                $("#" + containerId).html($("#" + txtId).val());
            }
        }

        function confirmAction() {
            $("#purchaseOrderRecommend").show();
        }

        function allDoneAndGoBack() {
            window.location.href = "../PurchaseOrder/PurchaseOrderByStorager";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="banner">
        物料列表:
    </div>
    <div>
        <table cellpadding="10">
            <thead>
                <tr>
                    <td>
                        物料条码
                    </td>
                    <td>
                        物料型号
                    </td>
                    <td>
                        数量
                    </td>
                </tr>
            </thead>
            <tbody id="OperationScreen" style="display: none;">
                <tr id="materialList" style="display: none;">
                    <td>
                        1002033345158
                    </td>
                    <td>
                        0.15mm蚀刻铜片
                    </td>
                    <td>
                        <input id="amount" type="text" size="2" value="1" />
                    </td>
                </tr>
                <tr id="materialList2" style="display: none;">
                    <td>
                        1002033357921
                    </td>
                    <td>
                        <span>圆管</span>
                    </td>
                    <td>
                        <input id="amount2" type="text" size="2" value="1" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <p id="pConfirm" style="display: none;">
        <input type="button" value="确认" onclick="confirmAction()" />
    </p>
    <div id="purchaseOrderRecommend" style="display: none;">
        匹配进货单:
        <table>
            <thead>
                <tr>
                    <td>
                        进货单条码
                    </td>
                    <td>
                        进货单提交时间
                    </td>
                    <td>
                        提交人
                    </td>
                    <td>
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        1000100000512
                    </td>
                    <td>
                        2010-08-11 11:10:08
                    </td>
                    <td>
                        刘国锋
                    </td>
                    <td>
                        <label>
                            <input type="radio" name="select" />选择</label>
                    </td>
                </tr>
                <tr>
                    <td>
                        1000100000342
                    </td>
                    <td>
                        2010-08-15 17:21:07
                    </td>
                    <td>
                        徐毅
                    </td>
                    <td>
                        <label>
                            <input type="radio" name="select" />选择</label>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <input type="button" value="完成" onclick="allDoneAndGoBack();" />
        </p>
    </div>
</asp:Content>
